home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / QuakeTools / src / libqtools / pak.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-02  |  1.3 KB  |  41 lines

  1. #ifndef    PAK_H
  2. #define    PAK_H
  3. /*
  4.  * ============================================================================
  5.  * structures
  6.  * ============================================================================
  7.  */
  8. #define MAGIC_PACK 0x5041434B
  9. struct packheader {
  10.   magick magic;
  11.   /*
  12.    * PACK 
  13.    */
  14.   int offset, size;
  15. };
  16.  
  17. #define NAMELEN_PAK 0x38
  18. struct packentry {
  19.   char name[0x38];
  20.   int offset, size;
  21. };
  22.  
  23. /*
  24.  * ============================================================================
  25.  * globals
  26.  * ============================================================================
  27.  */
  28.  
  29. /*
  30.  * ============================================================================
  31.  * prototypes
  32.  * ============================================================================
  33.  */
  34.  
  35. bool AddPAK(struct palpic *inPic, struct rawdata *inData, char *pakName, operation procOper);
  36. bool ExtractPAK(FILE *file, FILE *script, char *destDir, char *entryName, unsigned char convert, operation procOper, bool recurse);
  37. bool CheckPAK(FILE *pakFile, struct packheader *Header, bool newWad);
  38. struct packentry *FindPAK(FILE *pakFile, char *entryName, struct packheader *Header, struct packentry **Entry);
  39. struct packentry *SearchPAK(char *entryName, struct packheader *Header, struct packentry *allEntries);
  40. #endif
  41.